﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;


namespace FinalProject.Entities
{
    public class Client
    {
        public int Id { get; set; }

        public PersonName PersonName { get; set; }

        [DisplayName("Phone Number")]
        [Required]
        [DataType(DataType.PhoneNumber)]
        public string Phone { get; set; }

        public DateTime Created { get; set; }
        public DateTime LastEdited { get; set; }
        public DateTime LastAccessed { get; set; }

        public int StoreId { get; set; }
        public virtual Store Store { get; set; }
        public virtual ICollection<Ticket> Tickets { get; set; }

    }
}